<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});


Route::get('test/index','TestController@index');

//Route::get('test/{id}', function ($id) {
//    return 'Test '.$id;
//});

Route::get('/test/test_do','TestController@test_do');

Route::get('/test/add','TestController@add');

Route::get('/test/show','TestController@show');

Route::post('/test/doinsert','TestController@doinsert');

Route::post('/test/del','TestController@del');

Route::get('/test/update','TestController@update');

Route::post('test/doupdate','TestController@doupdate');